//
//  YbrPerferenceTool.h
//  wifibox
//
//  Created by os X 10.9 on 14-11-9.
//  Copyright (c) 2014年 yinbaner. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YbrBaseObject.h"
#import "YbrDevice.h"

@interface YbrPerferenceTool : NSObject
+(YbrPerferenceTool *) prefer;

// 输入完毕保存
-(void) edited;

// 用户ID(用来标识是否登陆)
-(void) setUserId:(long) _id;
-(long) getUserId:(long) defule;

// 用户名
-(void) setUserName:(NSString *) username;
-(NSString *) getUserName:(NSString *) defule;

// 已经注册的手机缓存
-(void) setRegUsePhoneTemp:(NSString *) phone;
-(NSString *) getRegUsePhoneTemp:(NSString *) defule;

// 注册时间 (为了防止同一时间内多次注册)
-(void) setRegTimer:(NSTimeInterval) time;
-(NSTimeInterval) getRegTimer:(NSTimeInterval) defule;

// 注册用的短信数量
-(void) setRegMsmNum: (int)msmnum;
-(int) getRegMsmNum:(int) num;

// 找回密码用的短信数量
-(void) setFindPswMsmNum: (int)msmnum;
-(int) getFindPswMsmNum:(int) num;

// 设置语文的版本
-(void) setGradeChina:(id) baseHttp;
-(YbrBaseObject *) getGradeChina;

// 设置英语的版本
-(void) setGradeEnglish:(id) baseHttp;
-(YbrBaseObject *) getGradeEnglish;

// 设置HTTPService的链接
-(void) setHttpServiceUri:(NSString *) uri;
-(NSString *) getHttpServiceUri;

// 设置选择的设备
-(void) setSeleDeviceToPre:(NSString *) device;
-(YbrDevice *) getSeleDeviceFromPre;

// 设置选择的设备的IP
-(void) setSeleDeviceIP:(NSString *) ctrIP;
-(NSString *) getSeleDeviceIP;

// 设置发生了改变
-(void) setChanngeChannel:(BOOL) isChange;
// 是否发生改变
-(BOOL) isChanngeChannel;

// 设置SN码
-(void) setSNString:(NSString *) ns;
-(NSString *) getSNString;

// 设置DeviceID
-(void) setDeviceID:(NSString *) ns;
-(NSString *) getDeviceID;

// 记录获取固件版本
-(void) setHardFireVersion:(NSString *) version;
-(NSString *) getHardFireVersion;

// 记录获取固件版本url
-(void) setHardFireUrl:(NSString *) url;
-(NSString *) getHardFireUrl;

//============================================================================
// 记录获取用户详细信息
-(void) setUserDetails:(NSString *) url;
-(NSString *) getUserDetails;

// 记录用户的同步信息: 我的书包,我喜欢的,播放历史,我的消息
-(void) setUserSynchronizeDatas:(NSString *) url;
-(NSString *) getUserSynchronizeDatas;

// 记录用户的聊天唯一标识
-(void) setUserChatName:(NSString *) url;
-(NSString *) getUserChatName;

// 记录用户的身份,角色
-(void) setUserCharacterId:(int) value;
-(int) getUserCharacterId;

-(void) setAppMainPage:(NSString *)datas;
-(NSString *)getAppMainPage;


// 记录用户的身份,角色
-(void) setUserNickName:(NSString *) value;
-(NSString *) getUserNickName;

// 记录用户的地理位置
// 省份
-(void) setProvince:(NSString *) value;
-(NSString *) getProvince:(NSString *)defaults;
// 城市
-(void) setCity:(NSString *) value;
-(NSString *) getCity:(NSString *)defaults;
// 城市
-(void) setDistrict:(NSString *) value;
-(NSString *) getDistrict:(NSString *)defaults;

//=================================[统计bandge的数量并通知修改]=============================================
// 记录bandge的数量
// 注册用的短信数量

// MessageCount
-(void)setMessageCount: (int)count;
-(int)getMessageCount:(int)defaults;

// chatCount
-(void)setChatCount: (int)count;
-(int)getChatCount:(int)defaults;

// searchCount
-(void)setSearchCount: (int)count;
-(int)getSearchCount:(int)defaults;

// userCount
-(void)setUserCount: (int)count;
-(int)getUserCount:(int)defaults;

// IM聊天设置
// 是否显示昵称
-(void)setIMGroupIsShowNickName: (int)value;
-(int)getImGroupIsShowNickName:(int)defaults;


// 打印
-(void) log;
@end







